﻿
using System.Web.Core;
namespace Yuanlin.Business
{
    public class LanguageManager
    {
        public static string ProductCategoryAdd(int categoryType)
        {
            if (categoryType == 1)
            {
                return ResourceManager.GetString("System_Applications_Yuanlin_AddApplicationCategory", "ControlPanelResources.xml");
            }
            return ResourceManager.GetString("System_Applications_Yuanlin_AddProductCategory", "ControlPanelResources.xml");
        }
        public static string ProductCategoryEdit(int categoryType)
        {
            if (categoryType == 1)
            {
                return ResourceManager.GetString("System_Applications_Yuanlin_EditApplicationCategory", "ControlPanelResources.xml");
            }
            return ResourceManager.GetString("System_Applications_Yuanlin_EditProductCategory", "ControlPanelResources.xml");
        }
        public static string ZiCai(int ziCaiId)
        {
            string title = "zicai";
            if (ziCaiId == 1)
            {
                title = "machine";
            }
            else if (ziCaiId == 2)
            {
                title = "facility";
            }
            else if (ziCaiId == 3)
            {
                title = "agricultural";
            }
            else if (ziCaiId == 4)
            {
                title = "huafei";
            }
            else if (ziCaiId == 5)
            {
                title = "mash";
            }
            return ResourceManager.GetString(title);
        }
    }
}